/*
* 包含所有action creator
*
* */
import {INCREMENT, DECREMENT} from "./action-types";

export const increment = (number) => ({type: INCREMENT, data: Number(number)});
export const decrement = (number) => ({type: DECREMENT, data: Number(number)});
export const incrementAsync = (number)=>{
    return dispatch=>{
        setTimeout(()=>{
            dispatch(increment(number));
        },1000)
    }
};